package webchat;

import java.time.LocalTime;
import java.time.format.DateTimeFormatter;

/**
 * @author darren
 * @date 2016年7月15日 下午11:14:12
*/
public class ChatMsg {

	public enum ChatType{
		login,notify,msg,img,location,music
	}
	private ChatType type;
	private LocalTime time = LocalTime.now();
	private String uid;
	private String msg;
	private String name;
	private String url;
	public ChatType getType() {
		return type;
	}
	public void setType(ChatType type) {
		this.type = type;
	}
	public String getTime() {
		return time.format(DateTimeFormatter.ofPattern("HH:mm"));
	}
	public void setTime(LocalTime time) {
		this.time = time;
	}
	public String getUid() {
		return uid;
	}
	public void setUid(String uid) {
		this.uid = uid;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public ChatMsg() {
		super();
	}
	public ChatMsg(String uid) {
		super();
		this.uid = uid;
	}
	
}
